package com.frogs.ucenter.service.daoimpl;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.ucenter.dao.UserFamilyMemberDao;
import com.frogs.ucenter.entity.UserFamilyMember;
import com.frogs.ucenter.service.UserFamilyMemberService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userFamilyMemberService")
public class UserFamilyMemberServiceImpl extends BaseServiceImpl<UserFamilyMember> implements UserFamilyMemberService {
    @Autowired
    private UserFamilyMemberDao userFamilyMemberDao;

    public UserFamilyMemberServiceImpl() {
        super();
    }

    public UserFamilyMemberDao getUserFamilyMemberDao() {
        return userFamilyMemberDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserFamilyMember> getBaseDao() {
        return userFamilyMemberDao;
    }

    public void setUserFamilyMemberDao(UserFamilyMemberDao userFamilyMemberDao) {
        this.userFamilyMemberDao = userFamilyMemberDao;
    }
}